package com.itheima.d1_properties;

import java.io.FileReader;
import java.io.FileWriter;
import java.util.Properties;

public class JobPropertiesTest {
    public static void main(String[] args) throws Exception{
        Properties pro = new Properties();
        pro.setProperty("brand", "Iphone11Pro Max");
        pro.setProperty("capacity", "256G");
        pro.setProperty("price", "10899");

        pro.store(new FileWriter("iphone.properties"),"JobTest");

        Properties prop = new Properties();
        prop.load(new FileReader("iphone.properties"));
        System.out.println(prop);
    }
}
